﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Bussiness.Article>>" %>
 <%@ Import Namespace="Bussiness" %>
  <script language="javascript" type="text/javascript">
      $(function () {
          $('#news').vTicker({
              speed: 4000,
              pause: 8000,
              animation: 'fade',
              mousePause: true,
              showItems: 1
          });
      });
 </script>
   <div class="clear"></div>
 <div id="news">
 <ul>
  <% foreach (var product in ((IEnumerable<Bussiness.Article>) ViewData["ListArtical_Home"]))
     { %>
  <li>
 <div class="title"><span class="title_icon"><img src="../../Content/images/bullet3.gif" alt="" /></span><a href="/Artical/ChiTietBaiViet/?ID=<%= product.ID %>" style="text-decoration: none"> <%=product.Title%></a></div>
      <div class="about">
        <p> <img src="<%= product.SubImage%>" alt="" class="right" width="150" height="100" /> 
        <%= product.SubContent%>
        
        </p>
      </div>
</li>
<%} %>
</ul>
</div>